package com.ruoyi.mespro.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mespro.mapper.AlldataSizingMapper;
import com.ruoyi.mespro.domain.AlldataSizing;
import com.ruoyi.mespro.service.IAlldataSizingService;

/**
 * 浆纱机实时数据Service业务层处理
 *
 * @author Jun Xiang
 * @date 2022-06-07
 */
@Service
public class AlldataSizingServiceImpl implements IAlldataSizingService
{
    @Autowired
    private AlldataSizingMapper alldataSizingMapper;

    /**
     * 查询浆纱机实时数据
     *
     * @param id 浆纱机实时数据主键
     * @return 浆纱机实时数据
     */
    @Override
    public AlldataSizing selectAlldataSizingById(Long id)
    {
        return alldataSizingMapper.selectAlldataSizingById(id);
    }

    /**
     * 查询浆纱机实时数据列表
     *
     * @param alldataSizing 浆纱机实时数据
     * @return 浆纱机实时数据
     */
    @Override
    public List<AlldataSizing> selectAlldataSizingList(AlldataSizing alldataSizing)
    {
        return alldataSizingMapper.selectAlldataSizingList(alldataSizing);
    }

    /**
     * 新增浆纱机实时数据
     *
     * @param alldataSizing 浆纱机实时数据
     * @return 结果
     */
    @Override
    public int insertAlldataSizing(AlldataSizing alldataSizing)
    {
        return alldataSizingMapper.insertAlldataSizing(alldataSizing);
    }

    @Override
    public int insertAlldataSizingOld(AlldataSizing alldataSizing)
    {
        return alldataSizingMapper.insertAlldataSizingOld(alldataSizing);
    }

    /**
     * 修改浆纱机实时数据
     *
     * @param alldataSizing 浆纱机实时数据
     * @return 结果
     */
    @Override
    public int updateAlldataSizing(AlldataSizing alldataSizing)
    {
        return alldataSizingMapper.updateAlldataSizing(alldataSizing);
    }

    @Override
    public int updateAlldataSizingOld(AlldataSizing alldataSizing)
    {
        return alldataSizingMapper.updateAlldataSizingOld(alldataSizing);
    }

    /**
     * 批量删除浆纱机实时数据
     *
     * @param ids 需要删除的浆纱机实时数据主键
     * @return 结果
     */
    @Override
    public int deleteAlldataSizingByIds(Long[] ids)
    {
        return alldataSizingMapper.deleteAlldataSizingByIds(ids);
    }

    /**
     * 删除浆纱机实时数据信息
     *
     * @param id 浆纱机实时数据主键
     * @return 结果
     */
    @Override
    public int deleteAlldataSizingById(Long id)
    {
        return alldataSizingMapper.deleteAlldataSizingById(id);
    }

    @Override
    public AlldataSizing selectAlldataSizingByMacCode(AlldataSizing alldataSizing) {
        return alldataSizingMapper.selectAlldataSizingByMacCode(alldataSizing);
    }

    @Override
    public AlldataSizing selectAlldataSizingOldByMacCode(AlldataSizing alldataSizingOld) {
        return alldataSizingMapper.selectAlldataSizingOldByMacCode(alldataSizingOld);
    }

    @Override
    public int updateZZno(AlldataSizing alldataSizing) {
        return alldataSizingMapper.updateZZno(alldataSizing);
    }

    @Override
    public AlldataSizing selectAlldataSizingByShaftCode(String shaftCode) {
        return alldataSizingMapper.selectAlldataSizingByShaftCode(shaftCode);
    }
}
